package com.me.service;

import java.util.List;

import com.me.json.Province;
import com.me.pojo.Car;
import com.me.pojo.Enhance;
import com.me.pojo.MyOrder;
import com.me.pojo.ReceiveTime;
import com.me.pojo.ShippingAddress;
import com.me.pojo.User;

public interface UserService 
{
	void signUp(User user);
	
	String selectByUsername(String username);
	
	String login(String username,String password);
	
	User selectUser(String username,String password);
	
	void updatePic(User user);
	
	int insertCar(Car record);
	
	List<Enhance> selectEnhanceByUserId(Integer userId);
	
	int deleteCarByGoodsid(Integer id);
	
	String parseJSON();
	
	Province selectCityByProvinceName(String province);
	
	int insertAddressSelective(ShippingAddress record);
	
	List<ShippingAddress> selectAddressByUserid(Integer userid);
	
	int deleteAddressByPrimaryKey(Integer id);
	
	void insertOrderSelective(Integer userid,Integer addressId);
	
	int deleteCarByUSerid(Integer userid);
	
	List<Enhance> selectOrderByUserId(Integer userId);
	
	int updateMyOrderByPrimaryKeySelective(MyOrder record);
	
	int insertDateSelective(ReceiveTime record);
	
	ReceiveTime selectDateByOrderId(Integer orderid);
	
	User selectUserById(Integer userid);
}
